 import { createSlice } from "@reduxjs/toolkit";

const tabs = createSlice({
    name:'tab',
    initialState:{
        isCollapsed:false
    },
    reducers:{
        setCollapsed:state=>{
            state.isCollapsed = !state.isCollapsed
        }
    }
 })
 export const { setCollapsed } = tabs.actions
 export default tabs.reducer